#include "Prop.h"
#include "Player.h"

Prop::Prop(b2World * pW)
: GameEntity(pW)
, active(true)
{
}

Prop::~Prop()
{
}

EntityType Prop::getEntityType()
{
  return PROP;
}

void Prop::usePropByPlayer(Player * pPlayer)
{
  if (active)
  {
    active = false;
    pPlayer->getProp(getPropType());
    setVisible(false);
  }
}

